package main;

import java.util.LinkedHashMap;

import dao.ContentManager;

public class Config{
	
	private static Config config;
	private LinkedHashMap<String, Object> hashConfig;
	
	public static Config getInstance(){
		if(config == null){
			config = new Config();
		}
		
		return config;
	}
	
	Config(){
		hashConfig = ContentManager.getXmlReader().readConfig();
	}
	
	private  Object getConfigInternal(String key){
		return hashConfig.get(key);
	}
	public static Object getConfig(String key){
		return Config.getInstance().getConfigInternal(key);
	}
}